package com.mdinic.blogovi.front.page.blogpost;

import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.util.string.StringValue;

import com.mdinic.blogovi.front.common.AbstractBasePage;

/**
 * Class that represents blog post page.
 * 
 * @author mdinic
 */
public class BlogPostViewPage extends AbstractBasePage {

    private static final long serialVersionUID = 1L;

    /**
     * Constructor.
     */
    public BlogPostViewPage(PageParameters parameters) {
        super(false);
        StringValue id = parameters.get(URL_PARAM_NAME);

        add(new BlogPostViewPanel(id.toString(), parameters));
    }

}
